package cn.datax.service.data.market.dao;

import cn.datax.common.base.BaseDao;
import cn.datax.service.data.market.cata.entity.CataRelationEntity;
import cn.datax.service.data.market.cata.entity.CataResourceRelaEntity;
import cn.datax.service.data.market.cata.entity.ResourceInfoEntity;
import cn.datax.service.data.market.cata.entity.UserResourceInfoEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 目录资源关系
 * </p>
 *
 * @author yuwei
 * @since 2019-11-22
 */
@Mapper
public interface CataResourceRelaDao extends BaseDao<CataResourceRelaEntity> {
    List<ResourceInfoEntity> listApiResourceInfoByMap(Map map);
    List<ResourceInfoEntity> listTableResourceInfoByMap(Map map);
    IPage<ResourceInfoEntity> pageResourceApiResourceInfoByMap(IPage<ResourceInfoEntity> page, Map map);
    IPage<ResourceInfoEntity> pageResourceTableResourceInfoByMap(IPage<ResourceInfoEntity> page, Map map);
    int getCataResourceCountByMap(Map map);
}
